<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var stus=[
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dangdang",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"},
			{uid:"dingding",email:"ding@qq.com",phone:13511011000,uname:"丁春秋",sex:"女"}
							];
			function show(){
				var div_obj= document.getElementById('d1')
				var strHtml=`
				 <table border="1" bordercolor='blue' cellspacing="" cellpadding="">
				 	<tr>
				 		<th>编号</th>
						<th>邮箱</th>
						<th>电话</th>
						<th>姓名</th>
						<th>年龄</th>
				 		</tr>
				 	`
					for(var i=0;i<stus.length;i++){
				     strHtml+=`
						 <tr>
						 	<td>${stus[i].uid}</td>
							<td>${stus[i].email}</td>
							<td>${stus[i].phone}</td>
							<td>${stus[i].uname}</td>
							<td>${stus[i].sex}</td>
						 	</tr>

						 `		
						
						
					};
					
				strHtml+=`</table>`
				
				div_obj.innerHTML=strHtml
			}
		</script>
	</head>
	<body>
		<button  onclick="show()" type="button">显示</button>
		<div id="d1">
			
		</div>
		
		
	</body>
</html>
